<template>
	<page-body>
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center anqun_flex_0_higd"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub anqun_fd0_0_higd'>
					<view class='flex flex-wrap align-center anqun_fd0_0_c0_higd' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  anqun_fd0_0_c0_c0_higd'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text class='anqun_fd0_0_c1_c0_higd'>{{$t('安全知识')}}</text>
					</view>
					<view class='flex flex-wrap align-center justify-end anqun_fd0_0_c0_higd'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout">
				<view class='flex flex-wrap align-center'>
					<view>
						<benben-flex-tabs class-name='anqun_benbenTabsfd1_0_c0_higd' v-model="tabsTypefd1_0_c0"
							ref="benben_tabsfd1_0_c0" select-mark="benben_tabsfd1_0_c0" key="benben_tabsfd1_0_c0"
							:open-title-type='false' :open-sticky='true' :top='88' :is-show-content='false'
							:scrollspy='false' :tabs-info.sync="tabsInfofd1_0_c0">

							<scroll-view @scroll="tabsInfofd1_0_c0.scrollX = $event.detail.scrollLeft"
								id="benben_tabsfd1_0_c0" class="benben-tabs" style="width:750rpx" :scroll-x="true"
								:scroll-left="tabsInfofd1_0_c0.moveX" scroll-with-animation="all .3s ease"
								:show-scrollbar='false' :enhanced="true">
								<view class="benben-tabs-content" id="benben_tabsfd1_0_c0-content">
									<view id="benben_tabsfd1_0_c0-title"
										class="benben-tabs-title flex flex align-center justify-around">
										<view
											:class="{ 'checkTitlefd1_0_c0_higd': tabsTypefd1_0_c0 == '0', 'flex flex-wrap align-center': true }"
											@tap="check(0)" :id="`benben_tabsfd1_0_c0-title-item-${'0'}`">

											<text>{{$t('全部')}}</text>

										</view>
										<view
											:class="{ 'checkTitlefd1_0_c0_higd': tabsTypefd1_0_c0 == '1', 'flex flex-wrap align-center': true }"
											@tap="check(1)" :id="`benben_tabsfd1_0_c0-title-item-${'1'}`">

											<text>{{$t('信号提示')}}</text>

										</view>
										<view
											:class="{ 'checkTitlefd1_0_c0_higd': tabsTypefd1_0_c0 == '2', 'flex flex-wrap align-center': true }"
											@tap="check(2)" :id="`benben_tabsfd1_0_c0-title-item-${'2'}`">

											<text>{{$t('标志图例')}}</text>

										</view>
										<view
											:class="{ 'checkTitlefd1_0_c0_higd': tabsTypefd1_0_c0 == '3', 'flex flex-wrap align-center': true }"
											@tap="check(3)" :id="`benben_tabsfd1_0_c0-title-item-${'3'}`">

											<text>{{$t('法律法规')}}</text>

										</view>
										<view
											:class="{ 'checkTitlefd1_0_c0_higd': tabsTypefd1_0_c0 == '4', 'flex flex-wrap align-center': true }"
											@tap="check(4)" :id="`benben_tabsfd1_0_c0-title-item-${'4'}`">

											<text>{{$t('安全教育')}}</text>

										</view>
									</view>
									<view
										:style="{ left: tabsInfofd1_0_c0.lineleft, maxWidth: tabsInfofd1_0_c0.lineWidth ,}"
										id="benben_tabsfd1_0_c0-line"
										class="benben-tabs-line flex benben-flex-tabs-line anqun_linefd1_0_c0_higd"
										:class="{'benben-tabs-line-active':tabsInfofd1_0_c0.isInit}"></view>
								</view>
							</scroll-view>

						</benben-flex-tabs>

					</view>
				</view>
			</view>

			<!---flex布局flex布局结束-->
			<!---flex布局4flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout anqun_flex_2_higd">
				<view class='flex flex-direction flex-wrap align-stretch'>
					<template v-for='(item,key0) in listData'>
						<view class='flex align-stretch justify-between anqun_fd2_0_c0_higd' @tap.stop="handleJumpDiy"
							data-type="navigateTo" :data-url="`/pagesanfang/js/details/details?id=${item.aid}&type=1`"
							:key='key0'>
							<view class='flex flex-direction flex-wrap align-stretch justify-between'>
								<view class='flex flex-wrap align-center'>
									<text class='anqun_fd2_0_c0_c0_c0_c0_higd hid2'>{{item.title}}</text>
								</view>
								<view class='flex flex-wrap align-center anqun_fd2_0_c0_c0_c1_higd'>
									<text class='anqun_fd2_0_c0_c0_c1_c0_higd'>{{item.fbsj}}</text>
								</view>
							</view>
							<view class='flex flex-wrap align-center'>
								<image class='anqun_fd2_0_c0_c1_c0_higd' mode="aspectFill" :src='item.fmt'></image>
							</view>
						</view>
					</template>
				
					
					<fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
						:listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
				</view>
			</view>

			<!---flex布局4flex布局结束-->


		</view>
	</page-body>
</template>
<script>
	import pagingList from '@/common/mixin/paging_list.js';
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},
		mixins: [pagingList],

		data() {
			return {
				"tabsInfofd1_0_c0": {
					lineleft: '',
					lineWidth: '',
					moveX: 0,
					scrollX: 0,
					PageScrollX: 0,
					isInit: false
				},
				"tabsTypefd1_0_c0": "0",
				"minixPagingListsApi": "",
				"pageingListApiMethod": "",
				"allowOnloadGetList": false,
				"listData": [],
				"page": 1,
				"type": ""
			};
		},
		computed: {

		},
		watch: {},
		onLoad(options) {

		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			this.getex7385eff67f39Func()
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {
			this.getex7385eff67f39Func()
		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//查询安全知识管理
			getex7385eff67f39Func() {
				this.minixPagingListsApi = global.apiUrls.post67385eff67f39;
				this.pageingListApiMethod = 'get';
				this.allowOnloadGetList = false;
				this.pagingListPostDataContent = {
					flmc: this.tabsTypefd1_0_c0
				}
				this.listData = [];
				this.listData = this.listData;
				this.pagingListToggle();

			},
			check(index){
				this.tabsTypefd1_0_c0=index
				this.getex7385eff67f39Func()
			},
			pagingListPostData() {
				return this.pagingListPostDataContent
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #F8F8F8;
		background-size: 100% auto;

		.anqun_flex_2_higd {
			padding: 32rpx 32rpx 0rpx 32rpx;

			.anqun_fd2_0_c0_higd {
				margin: 0rpx 0rpx 24rpx 0rpx;
				padding:  24rpx;
				background: rgba(255, 255, 255, 1);
				background-size: 100% auto;
				border-radius: 16rpx;

				.anqun_fd2_0_c0_c0_c0_c0_higd {
					font-size: 28rpx;
					color: #333;
					font-weight: 500;
				}

				.anqun_fd2_0_c0_c0_c1_higd {
					margin: 20rpx 0rpx 0rpx 0rpx;

					.anqun_fd2_0_c0_c0_c1_c0_higd {
						font-size: 24rpx;
						color: rgba(153, 153, 153, 1);
					}
				}

				.anqun_fd2_0_c0_c1_c0_higd {
					border-radius: 12rpx;
					width: 248rpx;
					height: 160rpx;
				}
			}
		}

		.checkTitlefd1_0_c0_higd {
			font-weight: 500 !important;
			font-size: 32rpx !important;
			color: #D32A29 !important;
			background-color: var(--benbenFontColor3) !important;
		}

		.anqun_linefd1_0_c0_higd {
			width: 50rpx;
			height: 8rpx;
			top: 85rpx;
			background: rgba(211, 42, 41, 1);
			background-size: 100% auto !important;
		}

		.anqun_flex_0_higd {
			width: 750rpx;
			height: 88rpx;
			overflow: hidden;
			z-index: 10;
			top: 0rpx;
			background: #fff;
			background-size: 100% auto !important;

			.anqun_fd0_0_higd {
				padding: 0rpx 32rpx 0rpx 32rpx;

				.anqun_fd0_0_c1_c0_higd {
					font-size: 36rpx;
					font-weight: 700;
					color: #333333;
					line-height: 50rpx;
				}
			}
		}

		.anqun_fd0_0_c0_higd {
			width: 120rpx;

			.anqun_fd0_0_c0_c0_higd {
				font-size: 36rpx;
				color: #333;
			}
		}
	}

	::v-deep .anqun_benbenTabsfd1_0_c0_higd {
		width: 750rpx;
		height: 91rpx;
		white-space: nowrap;
		background: #fff;
		text-align: center;
		font-size: 32rpx;
		font-weight: 400;
		color: #999999;
	}
</style>
